package github.flandre.examplemod.core.init.event;

import github.flandre.examplemod.common.commands.BackPostionCommand;
import github.flandre.examplemod.common.commands.GetHandCommand;
import github.flandre.examplemod.common.commands.SavePostionCommand;
import github.flandre.examplemod.examplemod;
import net.minecraftforge.event.RegisterCommandsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.server.command.ConfigCommand;

@Mod.EventBusSubscriber(modid = examplemod.MODID)
public class CommandEvents {
    @SubscribeEvent
    public static void commandRegister(RegisterCommandsEvent event)
    {
        new GetHandCommand(event.getDispatcher());
        new SavePostionCommand(event.getDispatcher());
        new BackPostionCommand(event.getDispatcher());
        ConfigCommand.register(event.getDispatcher());
    }
}
